/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main;

import graphics.ProgressFrame;
import tools.Extractor;

/**
 *
 * @author Mattia
 */
public class TestFrame {

    public static void main(String args[]) {
        TestFrame t = new TestFrame();
        t.start();
    }

    public void start() {
        final ProgressFrame rsc = new ProgressFrame();
        // Setup della finestra di download
        rsc.setUp(new javax.swing.ImageIcon(getClass().getResource("/graphics/image/Firefox.png")), "Extract Firefox", null);
        final Extractor ex = new Extractor(rsc, "C:\\Users\\Mattia\\Downloads\\AmunaptraDownload\\Firefox.zip");
        rsc.setVisible(true);
        Thread t = new Thread(new Runnable() {

            @Override
            public void run() {
                ex.extract();
            }
        });
        t.start();
    }
}
